package com.task.services;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.task.bean.TaskRegistBean;
import com.task.dao.TaskRegistDao;

@Service
@Transactional
public class TaskRegistService {

	@Autowired
	private TaskRegistDao taskRegistDao;
	
	public TaskRegistBean getRegistBean(Integer id) {
		return this.taskRegistDao.getRegistBean(id);
	}
	
	public  List<TaskRegistBean> getAllTaskRegist(Map<String,String> queryMap){
		return this.taskRegistDao.getAllTaskRegist(queryMap);
	}
	
    public int getRegistCount(Map<String,String> queryMap) {
    	return this.taskRegistDao.getAllTaskRegistCount(queryMap);
    }
    
    public void saveRegist(TaskRegistBean bean) {
    	 this.taskRegistDao.saveRegist(bean);
    }
    
    public void delRegist(String ids) {
    	 this.taskRegistDao.delRegist(ids);
    }
    
    public void updateRegist(TaskRegistBean tb) {
    	this.taskRegistDao.updateRegist(tb);
    }
}
